package com.shop2cn.iapi.sqdistributor.parameter.request.pojo;

import java.math.BigDecimal;
import java.util.Random;

import com.ymttest.utils.TestDataManager;

public class AgencySubDistributorCommisionRateVo {
	
	private Integer distributorLevelIndex;
	
	private String distributorLevelLabel;
	
	private BigDecimal layer1Rate;

	public Integer getDistributorLevelIndex() {
		return distributorLevelIndex;
	}

	public void setDistributorLevelIndex(Integer distributorLevelIndex) {
		this.distributorLevelIndex = distributorLevelIndex;
	}

	public String getDistributorLevelLabel() {
		return distributorLevelLabel;
	}

	public void setDistributorLevelLabel(String distributorLevelLabel) {
		this.distributorLevelLabel = distributorLevelLabel;
	}

	public BigDecimal getLayer1Rate() {
		return layer1Rate;
	}

	public void setLayer1Rate(BigDecimal layer1Rate) {
		this.layer1Rate = layer1Rate;
	}
	
	public static AgencySubDistributorCommisionRateVo createStandardAgencySubDistributorLevelCommissionRate() {

		AgencySubDistributorCommisionRateVo agencySubDistributorCommisionRateVo = new AgencySubDistributorCommisionRateVo();

		agencySubDistributorCommisionRateVo.setDistributorLevelIndex(0);
		agencySubDistributorCommisionRateVo
				.setDistributorLevelLabel("autotest" + TestDataManager.randomStr(7));
		agencySubDistributorCommisionRateVo
				.setLayer1Rate(new BigDecimal(new Random().nextInt(20) + 10)
						.multiply(new BigDecimal("0.01")));

		return agencySubDistributorCommisionRateVo;
	}
}
